package com.fhz.a2102mvi.test;

/**
 * 时间:2023/10/16
 *
 * @author Mr.Feng
 * 简述: TODO
 */
public class User {
    String name;
    int age;
    String email;
    String address;
    String address1;
    String address3;

    private User(){
    }

    public static class Builder{
        String name;
        int age;
        String email;
        String address;
        String address1;
        String address3;

        public Builder setName(String name) {
            this.name = name;
            return this;
        }

        public Builder setAge(int age) {
            this.age = age;
            return this;
        }

        public Builder setEmail(String email) {
            this.email = email;
            return this;
        }

        public Builder setAddress(String address) {
            this.address = address;
            return this;
        }

        public Builder setAddress1(String address1) {
            this.address1 = address1;
            return this;
        }

        public Builder setAddress3(String address3) {
            this.address3 = address3;
            return this;
        }
        public User build(){
            User user = new User();
            user.address = address;
            user.age = age;
            user.name = name;
            return user;
        }
    }

    public static void main(String[] args) {
        int a = 10_000;
        new User.Builder().setName("12").setAddress("2q").build();
    }

}   
